div {
    height: 200px;
    width: 50%;
    float: left;
}

div:first-child {
    background-color: pink;
}

div:nth-child(2) {
    background-color: purple;
}